import request from '@/axios';

export const getList = (current, size, params) => request({
  url: '/zzy-desk/notice/list',
  method: 'get',
  params: {
    ...params,
    current,
    size,
  },
});

export const remove = ids => request({
  url: '/zzy-desk/notice/remove',
  method: 'post',
  params: {
    ids,
  },
});

export const add = row => request({
  url: '/zzy-desk/notice/submit',
  method: 'post',
  data: row,
});

export const update = row => request({
  url: '/zzy-desk/notice/submit',
  method: 'post',
  data: row,
});

export const getNotice = id => request({
  url: '/zzy-desk/notice/detail',
  method: 'get',
  params: {
    id,
  },
});
